﻿using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XRoute.Model
{
    class Node
    {
        ///////////////////////////////////////////////////////////////////////

        readonly int _weight;
        readonly int _x;
        readonly int _y;


        ///////////////////////////////////////////////////////////////////////

        public Node(int weight, int x, int y)
        {
            Contract.Requires(x >= 0);
            Contract.Requires(y >= 0);

            _weight = weight;
            _x = x;
            _y = y;
        }

        public int Weight
        {
            get { return _weight; }
        }

        public int X
        {
            get { return _x; }
        }

        public int Y
        {
            get { return _y; }
        }
    }
}
